package main

import (
	"novel-mng-sys/appconfig"
	"novel-mng-sys/cache"
	"novel-mng-sys/models"
	"novel-mng-sys/routers"
)

func main() {

	appconfig.Init() //加载配置
	models.Init()    //连接数据库
	cache.Init()     //连接redis

	r := routers.Init()
	r.Run(":8000")
}
